/**
 * 
 */
package com.zhanggz.mypattern.proxy;

/**
 * 日志代理
 * 
 * @author alex
 * @Date Jun 27, 2015
 */
public class CarLogProxy implements Moveable {

	private Moveable m;

	/**
	 * 
	 */
	public CarLogProxy(Moveable m) {
		super();
		this.m = m;
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see com.zhanggz.mypattern.proxy.Moveable#move()
	 */
	public void move() {
		System.out.println("日志记录开始。。。");
		m.move();
		System.out.println("日志记录结束。。。");

	}

}
